<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\Config */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="config-form box box-primary" style="padding: 15px 0px">
    
    <?php $form = ActiveForm::begin(); ?>
   
    <div class="col-md-6">
        <?= $form->field($model, 'cid')->textInput()->dropDownList(['1' => '基本设置', '2' => 'seo']) ?>

        <?= $form->field($model, 'type')->textInput(['maxlength' => true])->dropDownList(['text' => '文字', 'img' => '图片']); ?>

        <?= $form->field($model, 'key')->textInput(['maxlength' => true])->label('简码 <span style="color:red">【 英文小写 】</span>')  ?>

        <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>

        <?= $form->field($model, 'value')->textInput(['maxlength' => true]) ?>


        <div class="form-group">
            <?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
        </div>

    </div>

    <div class="col-md-6">
        <?= $form->field($model, 'remark')->textInput(['maxlength' => true]) ?>

        <?= $form->field($model, 'sort')->textInput()->label('排序 <span style="color:red">【 数值越大越靠前 】</span>') ?>
    </div>

    <div class="clearfix"></div>

    <?php ActiveForm::end(); ?>

</div>
